import { Entity, PrimaryGeneratedColumn, Column } from 'typeorm'

@Entity('roles')
export class Role {
  @PrimaryGeneratedColumn()
  _id: number

  @Column({ type: 'int' })
  role_id: number

  @Column({ type: 'varchar', length: 255 })
  role_name: string

  @Column({ type: 'text' })
  role_desc: string

  @Column('simple-json')
  router_ids: number[]

  @Column('simple-json')
  router_desc: string[]
}
